# _*_ coding: utf-8 _*_
__author__ = 'yinlei'
__date__ = '2018-05-18 8:14'

DEBUG = True
DB_UAERNAME = 'root'
DB_PASSWORD = 'xxxxxxxxxxxxxx'
DB_HOST = '127.0.0.1'
DB_PORT = 3306
DB_NAME = 'zlbbs'
SECRET_KEY = b'\x99\xfe(\x07\xb3\xc8H]7\xccYr\xd3K\xa3\x8b_\x04\x18\xcd\x9fYh\xa3'
SQLALCHEMY_DATABASE_URI = 'mysql+cymysql://{username}:{password}@{host}:{port}/{database}?charset=utf8'.format(
    username=DB_UAERNAME, password=DB_PASSWORD, host=DB_HOST, port=DB_PORT, database=DB_NAME)

SQLALCHEMY_TRACK_MODIFICATIONS = False
CMS_USER_ID = 'qaartyiohfdfxzvnkui'
FRONT_USER_ID = '4rtr76jhgbvnjh4566kkuyitugre'

# Email 配置
MAIL_SERVER = 'smtp.163.com'
MAIL_PORT = 25
MAIL_USERNAME = 'developeryin@163.com'
MAIL_PASSWORD = 'xxxxxxxxxx'
MAIL_DEFAULT_SENDER = 'developeryin@163.com'

#阿里大于相关配置
ALIDAYU_APP_KEY = 'xxxxxxxxxxxxxxxxx'
ALIDAYU_APP_SECRET = 'xxxxxxxxxxx'
ALIDAYU_APP_SIGN_NAME = '爱派森学院'
ALIDAYU_APP_TEMPLATE_CODE = 'xxxxxxxxxxx1'
ALIDAYU_APP_URL='https://eco.taobao.com/router/rest'


import os

UEDITOR_UPLOAD_PATH = os.path.join(os.path.dirname(__file__),'images')
UEDITOR_UPLOAD_TO_QINIU = True
UEDITOR_QINIU_ACCESS_KEY = 'xxxxxxxx'
UEDITOR_QINIU_SECRET_KEY = 'xxxxxxxxxxxx'
UEDITOR_QINIU_BUCKET_NAME = 'flask'
UEDITOR_QINIU_DOMAIN = 'http://p9f6b6xz5.bkt.clouddn.com/'


#flask-paginate的相关配置
PER_PAGE=4

CELERY_RESULT_BACKEND='redis://127.0.0.1:6379/0'
CELERY_BROKER_URL='redis://127.0.0.1:6379/0'